package com.biz.model.Hmodel.goods;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by lzq.
 */

@Entity
@Table(name = "base_wxgoods")
public class TBaseWxgoods {
    private String id;
    private String name;
    private String info;
    private Short discount;
    private Short isSale;
    private Integer sales;
    private Short isdel;
    private Date createTime;
    private String subtitle;
    private String freight;
    private Date sendTime;
    private String memberLimit;
    private Integer isPromptly;
    private Date saleTime;
    private Integer countLimit;
    private String venderId;
    private String shopid;
    private String infoLite;
    private String coverId;
    private Integer pv;
    private Integer uv;
    private String cityId;
    private String unitId;
    private String brand;
    private String venderIdName;
    private String venderAddr;
    private String latitude;
    private String longitude;
    private Integer isTicket;
    private String goodsIdSup;
    private String code;
    private String categoryFirst;
    private String categorySecond;
    private Double price;
    private Date startTime;
    private Date endTime;

    @Id
    @Column(name = "id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "info")
    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    @Basic
    @Column(name = "discount")
    public Short getDiscount() {
        return discount;
    }

    public void setDiscount(Short discount) {
        this.discount = discount;
    }

    @Basic
    @Column(name = "isSale")
    public Short getIsSale() {
        return isSale;
    }

    public void setIsSale(Short isSale) {
        this.isSale = isSale;
    }

    @Basic
    @Column(name = "sales")
    public Integer getSales() {
        return sales;
    }

    public void setSales(Integer sales) {
        this.sales = sales;
    }

    @Basic
    @Column(name = "isdel")
    public Short getIsdel() {
        return isdel;
    }

    public void setIsdel(Short isdel) {
        this.isdel = isdel;
    }

    @Basic
    @Column(name = "createTime")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "subtitle")
    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    @Basic
    @Column(name = "freight")
    public String getFreight() {
        return freight;
    }

    public void setFreight(String freight) {
        this.freight = freight;
    }

    @Basic
    @Column(name = "sendTime")
    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    @Basic
    @Column(name = "memberLimit")
    public String getMemberLimit() {
        return memberLimit;
    }

    public void setMemberLimit(String memberLimit) {
        this.memberLimit = memberLimit;
    }

    @Basic
    @Column(name = "isPromptly")
    public Integer getIsPromptly() {
        return isPromptly;
    }

    public void setIsPromptly(Integer isPromptly) {
        this.isPromptly = isPromptly;
    }

    @Basic
    @Column(name = "saleTime")
    public Date getSaleTime() {
        return saleTime;
    }

    public void setSaleTime(Date saleTime) {
        this.saleTime = saleTime;
    }

    @Basic
    @Column(name = "countLimit")
    public Integer getCountLimit() {
        return countLimit;
    }

    public void setCountLimit(Integer countLimit) {
        this.countLimit = countLimit;
    }

    @Basic
    @Column(name = "venderId")
    public String getVenderId() {
        return venderId;
    }

    public void setVenderId(String venderId) {
        this.venderId = venderId;
    }

    @Basic
    @Column(name = "shopid")
    public String getShopid() {
        return shopid;
    }

    public void setShopid(String shopid) {
        this.shopid = shopid;
    }

    @Basic
    @Column(name = "infoLite")
    public String getInfoLite() {
        return infoLite;
    }

    public void setInfoLite(String infoLite) {
        this.infoLite = infoLite;
    }

    @Basic
    @Column(name = "coverId")
    public String getCoverId() {
        return coverId;
    }

    public void setCoverId(String coverId) {
        this.coverId = coverId;
    }

    @Basic
    @Column(name = "PV")
    public Integer getPv() {
        return pv;
    }

    public void setPv(Integer pv) {
        this.pv = pv;
    }

    @Basic
    @Column(name = "UV")
    public Integer getUv() {
        return uv;
    }

    public void setUv(Integer uv) {
        this.uv = uv;
    }

    @Basic
    @Column(name = "cityId")
    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    @Basic
    @Column(name = "unitId")
    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

    @Basic
    @Column(name = "brand")
    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    @Basic
    @Column(name = "venderIdName")
    public String getVenderIdName() {
        return venderIdName;
    }

    public void setVenderIdName(String venderIdName) {
        this.venderIdName = venderIdName;
    }

    @Basic
    @Column(name = "venderAddr")
    public String getVenderAddr() {
        return venderAddr;
    }

    public void setVenderAddr(String venderAddr) {
        this.venderAddr = venderAddr;
    }

    @Basic
    @Column(name = "latitude")
    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    @Basic
    @Column(name = "longitude")
    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    @Basic
    @Column(name = "isTicket")
    public Integer getIsTicket() {
        return isTicket;
    }

    public void setIsTicket(Integer isTicket) {
        this.isTicket = isTicket;
    }

    @Basic
    @Column(name = "goodsIdSup")
    public String getGoodsIdSup() {
        return goodsIdSup;
    }

    public void setGoodsIdSup(String goodsIdSup) {
        this.goodsIdSup = goodsIdSup;
    }

    @Basic
    @Column(name = "code")
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Basic
    @Column(name = "categoryFirst")
    public String getCategoryFirst() {
        return categoryFirst;
    }

    public void setCategoryFirst(String categoryFirst) {
        this.categoryFirst = categoryFirst;
    }

    @Basic
    @Column(name = "categorySecond")
    public String getCategorySecond() {
        return categorySecond;
    }

    public void setCategorySecond(String categorySecond) {
        this.categorySecond = categorySecond;
    }

    @Basic
    @Column(name = "price")
    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    @Basic
    @Column(name = "startTime")
    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    @Basic
    @Column(name = "endTime")
    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TBaseWxgoods that = (TBaseWxgoods) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (name != null ? !name.equals(that.name) : that.name != null) return false;
        if (info != null ? !info.equals(that.info) : that.info != null) return false;
        if (discount != null ? !discount.equals(that.discount) : that.discount != null) return false;
        if (isSale != null ? !isSale.equals(that.isSale) : that.isSale != null) return false;
        if (sales != null ? !sales.equals(that.sales) : that.sales != null) return false;
        if (isdel != null ? !isdel.equals(that.isdel) : that.isdel != null) return false;
        if (createTime != null ? !createTime.equals(that.createTime) : that.createTime != null) return false;
        if (subtitle != null ? !subtitle.equals(that.subtitle) : that.subtitle != null) return false;
        if (freight != null ? !freight.equals(that.freight) : that.freight != null) return false;
        if (sendTime != null ? !sendTime.equals(that.sendTime) : that.sendTime != null) return false;
        if (memberLimit != null ? !memberLimit.equals(that.memberLimit) : that.memberLimit != null) return false;
        if (isPromptly != null ? !isPromptly.equals(that.isPromptly) : that.isPromptly != null) return false;
        if (saleTime != null ? !saleTime.equals(that.saleTime) : that.saleTime != null) return false;
        if (countLimit != null ? !countLimit.equals(that.countLimit) : that.countLimit != null) return false;
        if (venderId != null ? !venderId.equals(that.venderId) : that.venderId != null) return false;
        if (shopid != null ? !shopid.equals(that.shopid) : that.shopid != null) return false;
        if (infoLite != null ? !infoLite.equals(that.infoLite) : that.infoLite != null) return false;
        if (coverId != null ? !coverId.equals(that.coverId) : that.coverId != null) return false;
        if (pv != null ? !pv.equals(that.pv) : that.pv != null) return false;
        if (uv != null ? !uv.equals(that.uv) : that.uv != null) return false;
        if (cityId != null ? !cityId.equals(that.cityId) : that.cityId != null) return false;
        if (unitId != null ? !unitId.equals(that.unitId) : that.unitId != null) return false;
        if (brand != null ? !brand.equals(that.brand) : that.brand != null) return false;
        if (venderIdName != null ? !venderIdName.equals(that.venderIdName) : that.venderIdName != null) return false;
        if (venderAddr != null ? !venderAddr.equals(that.venderAddr) : that.venderAddr != null) return false;
        if (latitude != null ? !latitude.equals(that.latitude) : that.latitude != null) return false;
        if (longitude != null ? !longitude.equals(that.longitude) : that.longitude != null) return false;
        if (isTicket != null ? !isTicket.equals(that.isTicket) : that.isTicket != null) return false;
        if (goodsIdSup != null ? !goodsIdSup.equals(that.goodsIdSup) : that.goodsIdSup != null) return false;
        if (code != null ? !code.equals(that.code) : that.code != null) return false;
        if (categoryFirst != null ? !categoryFirst.equals(that.categoryFirst) : that.categoryFirst != null)
            return false;
        if (categorySecond != null ? !categorySecond.equals(that.categorySecond) : that.categorySecond != null)
            return false;
        if (price != null ? !price.equals(that.price) : that.price != null) return false;
        if (startTime != null ? !startTime.equals(that.startTime) : that.startTime != null) return false;
        if (endTime != null ? !endTime.equals(that.endTime) : that.endTime != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (info != null ? info.hashCode() : 0);
        result = 31 * result + (discount != null ? discount.hashCode() : 0);
        result = 31 * result + (isSale != null ? isSale.hashCode() : 0);
        result = 31 * result + (sales != null ? sales.hashCode() : 0);
        result = 31 * result + (isdel != null ? isdel.hashCode() : 0);
        result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
        result = 31 * result + (subtitle != null ? subtitle.hashCode() : 0);
        result = 31 * result + (freight != null ? freight.hashCode() : 0);
        result = 31 * result + (sendTime != null ? sendTime.hashCode() : 0);
        result = 31 * result + (memberLimit != null ? memberLimit.hashCode() : 0);
        result = 31 * result + (isPromptly != null ? isPromptly.hashCode() : 0);
        result = 31 * result + (saleTime != null ? saleTime.hashCode() : 0);
        result = 31 * result + (countLimit != null ? countLimit.hashCode() : 0);
        result = 31 * result + (venderId != null ? venderId.hashCode() : 0);
        result = 31 * result + (shopid != null ? shopid.hashCode() : 0);
        result = 31 * result + (infoLite != null ? infoLite.hashCode() : 0);
        result = 31 * result + (coverId != null ? coverId.hashCode() : 0);
        result = 31 * result + (pv != null ? pv.hashCode() : 0);
        result = 31 * result + (uv != null ? uv.hashCode() : 0);
        result = 31 * result + (cityId != null ? cityId.hashCode() : 0);
        result = 31 * result + (unitId != null ? unitId.hashCode() : 0);
        result = 31 * result + (brand != null ? brand.hashCode() : 0);
        result = 31 * result + (venderIdName != null ? venderIdName.hashCode() : 0);
        result = 31 * result + (venderAddr != null ? venderAddr.hashCode() : 0);
        result = 31 * result + (latitude != null ? latitude.hashCode() : 0);
        result = 31 * result + (longitude != null ? longitude.hashCode() : 0);
        result = 31 * result + (isTicket != null ? isTicket.hashCode() : 0);
        result = 31 * result + (goodsIdSup != null ? goodsIdSup.hashCode() : 0);
        result = 31 * result + (code != null ? code.hashCode() : 0);
        result = 31 * result + (categoryFirst != null ? categoryFirst.hashCode() : 0);
        result = 31 * result + (categorySecond != null ? categorySecond.hashCode() : 0);
        result = 31 * result + (price != null ? price.hashCode() : 0);
        result = 31 * result + (startTime != null ? startTime.hashCode() : 0);
        result = 31 * result + (endTime != null ? endTime.hashCode() : 0);
        return result;
    }
}
